<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加优惠券</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/coupon/addCoupon.css">
</head>
<body>

<form class="layui-form" id="formtable" action="" lay-filter="example">
<!--    <input type="hidden" name="couponId" value="">-->
    <div class="layui-form-item">
        <label class="layui-form-label">优惠券名称：</label>
        <div class="layui-input-inline">
            <input type="text" name="CouponName" id="CouponName" lay-verify="title" autocomplete="off" class="layui-input-block">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">优惠券类型：</label>
        <div class="layui-input-block">
            <input type="radio" name="CouponType" value="满减券" title="满减券">
            <input type="radio" name="CouponType" value="优惠券" title="优惠券" checked="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">优惠券金额：</label>
        <div class="layui-input-block">
            <input type="text" name="CouponMoney" id="CouponMoney" autocomplete="off" class="layui-input-block">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开始时间：</label>
        <div class="layui-input-inline">
            <input type="datetime" class="layui-input" name="time1" id="StartTime" placeholder="请输入开始时间">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">结束时间：</label>
        <div class="layui-input-inline">
            <input type="datetime" class="layui-input" name="time2" id="EndTime" placeholder="请输入结束时间">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">上线/下线：</label>
        <div class="layui-input-block">
            <input type="radio" name="CouponShelves" value="0" title="上线" checked="">
            <input type="radio" name="CouponShelves" value="1" title="下线">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">发行数量：</label>
        <div class="layui-input-inline">
            <input type="text" name="CouponNumber" id="CouponNumber" lay-verify="title" autocomplete="off" class="layui-input-block">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">获取方式：</label>
        <div class="layui-input-inline">
            <select name="couponManner" lay-filter="couponManner">
                <option value="" selected="" aria-placeholder="请选中发放方式"></option>
                <option value="自动发放">自动发放</option>
                <option value="活动领取">活动领取</option>
                <option value="人工发放">人工发放</option>
                <option value="无限制">无限制</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">优惠券类型：</label>
        <div class="layui-input-inline">
            <select name="CouponKind" lay-filter="CouponKind">
                <option value="" selected="" aria-placeholder="请选择类型"></option>
                <option value="商品">商品</option>
                <option value="视频">视频</option>
                <option value="无限制">无限制</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-inline">
            <textarea name="remark" id="remark" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" id="demo2">提交</button>
            <button class="layui-btn" onclick="qx()">取消</button>
        </div>
    </div>
</form>

<script src="/js/jquery-3.6.0.js"></script>
<script src="/layui/layui.js"></script>
<script src="/js/coupons/addCoupon.js"></script>
</body>
</html>